<template>
    <div class="nvb_bread_crumbs">
        <a-breadcrumb>
            <a-breadcrumb-item
                v-for="(item, index) in route.matched"
                :key="index"
            >
                {{ (item.meta as IMeta).title }}
            </a-breadcrumb-item>
        </a-breadcrumb>
    </div>
</template>

<script setup lang="ts">
import { useRoute } from 'vue-router'
import type { RouteMeta } from 'vue-router'

const route = useRoute()

interface IMeta extends RouteMeta {
    title: string
}
</script>

<style lang="scss" scoped></style>
